| 1. | Finally , recalculate both the f and g scores of that square 最后,重新计算那个方块的f和g值。 |
| 2. | The diagonal squares have g scores of 14 斜角的方块g值为14 。 |
| 3. | Its current g score is 14 它的当前g值是14 。 |
| 4. | The squares immediately above , below , and to the left of the starting square all have the same g score of 10 开始点相邻上方,下方和左边的方块都具有同样的g值: 10 。 |
| 5. | In other words , check to see if the g score for that square is lower if we use the current square to get there 换句话说,检查经由当前方块到达那里是否具有更小的g值。 |
| 6. | While you are calculating the path you could penalize squares where there is a change of direction , adding a penalty to their g scores 当你计算路径的时候,要处罚那些改变方向的方块,给它们一个附加的g值扣分。 |
| 7. | And the last square , to the immediate left of the current square , is checked to see if the g score is any lower if you go through the current square to get there 最后一个方块,当前方块相邻左边的那个,检查经由当前方块到达那里是否得到更小的g值。 |
| 8. | The other four squares are already on the open list , so we need to check if the paths to those squares are any better using this square to get there , using g scores as our point of reference 其它4个已经在开放列表中了,所以我们需要检查经由当前方块到达他们是否是更优的路径,使用g值为参考点。 |